package com.guocheng.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HomeController {

    @RequestMapping("/")
    public String start(){
        return "redirect:/login";
    }

    @GetMapping("/index")
    public String index(){
        return "index";
    }

    @GetMapping("/home")
    public String welcome(){
        return "home";
    }

    @GetMapping("/favicon.ico")
    public String faviconIos(){
        return "redirect:/static/images/login.png";
    }
}
